// 首页
Page({
  data: {
    travelItems: [  // 旅程卡片数据
      {
        id: 1,
        title: '江苏盐城',
        image: 'https://ts1.cn.mm.bing.net/th/id/R-C.45f1cc5731d2e1afc4d17e0a0eb9d5e7?rik=j1hSXoqKBVdH1g&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20200909ac%2f367%2fw1200h767%2f20200909%2fad29-iyywcsy7417166.jpg&ehk=NX2q6R74fV6FAhmIQ7bDFI6Z1AczVJopj1bKx7VB1yY%3d&risl=&pid=ImgRaw&r=0',
        date: '2024.5.1 - 5.5',
      },
      {
        id: 2,
        title: '四川成都-三星堆',
        image: 'https://ts1.cn.mm.bing.net/th/id/R-C.39fc6afd3c48b8c3d404724ae70c27c7?rik=Hn8xeQzQX0vXdg&riu=http%3a%2f%2fzhuanti.cnjiwang.com%2fwebpic%2fW0202104%2fW020210412%2fW020210412609870382657.jpg&ehk=CgE7Ban8xFQ0S8c%2fTm7k6tOnfRajjAl6GWxeUskcvm4%3d&risl=&pid=ImgRaw&r=0',
        date: '2024.1.13 - 1.18',
      },
      {
        id: 3,
        title: '山西大同-太原',
        image: 'https://img.zcool.cn/community/011a385d45687fa8012187f49286af.jpg@1280w_1l_2o_100sh.jpg',
        date: '2023.7.21 - 7.29',
      },
    ],

    logoInfo: {  // 页脚 logo信息
      icon: 'https://emos-20321.oss-cn-beijing.aliyuncs.com/logo.png',
      title: '轻舟辞',
    },
  },

  // 页面上拉触底事件的处理函数
  onReachBottom() {
  },

  // 用户点击右上角分享
  onShareAppMessage() {
  },


  // 点击新建旅程按钮，跳转至旅程设置页
  onClickAdd() {
    wx.navigateTo({
      url: '/pages/travel/travel-setting/travel-setting?mode=add',
    }).then()
  },

  // 点击用户信息按钮
  onClickUser() {
    wx.showToast({
      title: '点击用户信息按钮',
      icon: 'none',
    }).then()
  },
})
